<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>国际研究生教育法律法规信息资料数据库</title>
<link href="css/userfile.css" type="text/css" rel="stylesheet"/>
<link href="css/base.css" type="text/css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="css/page.css" />
<link rel="stylesheet" type="text/css" href="css/files.css" />
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/secloud.js"></script>
</head>



<body>
	
  <s:include value="../user_page_top.jsp"/>
  <div style="height:20px;"></div>
<div class = "usercont">

  	<s:include value="../user_page_left.jsp"/>
  
  
    <div class="width-800 right">
    <div class="righttcont">
        	<div class="search">
        	<div id="fm">
        	<s:form action="file_list_admin" namespace="/file" method="get">
				<s:textfield name="searchInfo" />
				<s:hidden name="pageSize" value="15"></s:hidden>
	    		<s:hidden name="pageNow" value="1"></s:hidden>
				<button type="submit" ><s:text name="_Search"/></button>
				<span><a style="color:black;font-size:12px" href="javascript:void(0);" onclick="to_advance_search()"><s:text name="_AdvancedSearch"/></a></span>
			</s:form>
			</div>
			<div id="ad_search" style="display: none">
    	<s:include value="/advance_admin.jsp"></s:include>
    	<div style="clear: both"></div>
    </div>
            </div>
        </div>
        
        <div style="height:20px;"></div>
		<div class="righttcont">
			<div class="m-10">
			
        	<s:if test="st==''||st=='validfile'">
        	<span><s:text name="_prValidF"/></span>
        	</s:if>
        	<s:else>
        	 <a href="<s:url includeParams="get" encode="true">
        	 	<s:param name="st">validfile</s:param> 
        	 	</s:url>"
        	 	><s:text name="_prValidF"></s:text>
        	 </a>
        	 </s:else>
        	 
        	 <s:if test="st=='allfile'">
        	<span><s:text name="_prAllF"/></span>
        	</s:if>
        	<s:else>
        	 <a  href="<s:url includeParams="get" encode="true">
        	 	<s:param name="st">allfile</s:param> 
        	 	</s:url>"
        	 	><s:text name="_prAllF"></s:text>
        	 </a>
        	 </s:else>
        	 
        	 <s:if test="st=='invalidfile'">
        	<span><s:text name="_prInvalidF"/></span>
        	</s:if>
        	<s:else>
        	  <a  href="<s:url includeParams="get" encode="true">
        	 	<s:param name="st">invalidfile</s:param> 
        	 	</s:url>"
        	 	><s:text name="_prInvalidF"></s:text>
        	 </a>
        	 </s:else>
        	 </div>
        	 <div class="m-10">
        	 </div>
		
		</div>
        
        <div style="height:20px;"></div>
        <div class="righttcont">
        	<div class="title"><h3><s:text name="_FileList"/></h3>
            </div>
			<table class="list_style">
  <thead>
  <tr class="tcat">
    <td style="width: 150px;"><s:text name="_FileName"/><s:text name="_OriginalText"/></td>
    <td style="width: auto;"><s:text name="_Country"/></td>
    
    <td style="width: 150px;"><s:text name="_IssuingAgency"/></td>
    <td style="width: 150px;"><s:text name="_Operate"/></td>
  </tr>
  </thead>
  <tbody class="tbody">
  <s:iterator value="fileList" status="stat">
  	<tr 
  		<s:if test="#stat.odd" > class="alt1"</s:if>
  		>
  		
	    <td id="id_file_show_<s:property value="itemId"/>">
	   	<s:property value="fileName" />
	   	<s:if test="state==2">
	   		<span style="color:red">(<s:text name="_Invisible"/>)</span>	
	   	</s:if>	
	   	
	    </td>
	    <td>
	    <p style="display:none" id="id_file_name_<s:property value="itemId"/>">${fileName}</p>
	    <p style="display:none" id="id_file_stat_<s:property value="itemId"/>">${state}</p>
	    
	    <s:property value="%{getText(country)}"/></td>
	    <td>
	    
	    <s:property value="publishOrgan"/>
	    	
	    	
	    </td>
	    <td>
	    <a href="<s:url action="editpage" namespace="/file">
	    	<s:param name="itemID" value="itemId"></s:param>	    	
          	</s:url>"
        ><s:text name="_Edit"/></a>
           <s:if test="state == 2">
           <a id="id_swit_stat_<s:property value="itemId"/>"href="javascript:void(0);" onclick="switchFileStat(<s:property value="itemId"/>,1)"><s:text name="_Visible"/></a>
 
        
        
        </s:if>   
        <s:else>
        <a id="id_swit_stat_<s:property value="itemId"/>"href="javascript:void(0);" onclick="switchFileStat(<s:property value="itemId"/>,2)"><s:text name="_Invisible"/></a>
 
        	
        </s:else>
	    </td>
	  </tr>
	  </s:iterator>
  </tbody>
</table>
<div class="messagepage">
 
	  <p style="margin-left:20px"> <s:text name="_PageInfo">
		<s:param name="pageCount"><s:property value="pageCount"/></s:param>
		<s:param name="pageNow"><s:property value="pageNow"/></s:param>
		<s:param name="pageSize"><s:property value="pageSize"/></s:param>
		</s:text></p>
	  <ul>
	  <li><a href="<s:url includeParams="get" encode="true">
	    	<s:param name="pageSize" value="pageSize"></s:param>
	    	<s:param name="pageNow" value="1"></s:param>	
	    	<s:param name="searchInfo" value="searchInfo"></s:param>
          	</s:url>"
        ><s:text name="_HomePage"/></a>
       </li>
	  <li><a href="<s:url includeParams="get" encode="true">
	    	<s:param name="pageSize" value="pageSize"></s:param>
	    	<s:param name="pageNow" value="pageNow-1"></s:param>	
	    	<s:param name="searchInfo" value="searchInfo"></s:param>
          	</s:url>"
        ><s:text name="_PreviousPage"/></a>
        </li>
      
	  <li><a href="<s:url includeParams="get" encode="true">
	    	<s:param name="pageSize" value="pageSize"></s:param>
	    	<s:param name="pageNow" value="pageNow+1"></s:param>	
	    	<s:param name="searchInfo" value="searchInfo"></s:param>
          	</s:url>"
        ><s:text name="_NextPage"/></a>
        </li>
      <li><a href="<s:url includeParams="get" encode="true">
	    	<s:param name="pageSize" value="pageSize"></s:param>
	    	<s:param name="pageNow" value="pageCount/pageSize+1"></s:param>	 
	    	<s:param name="searchInfo" value="searchInfo"></s:param>   	
          	</s:url>"
        ><s:text name="_LastPage"/></a>
        </li>
        </ul>
       
        </div>
        </div>
     </div>
</div>
    
	<s:include value="../foot.jsp"/>
    
     


</body>
</html>
